package org.ljy.forum6.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.ljy.forum6.model.ArticleReply;

import java.util.List;

@Mapper

public interface ArticleReplyMapper {
    int insert(ArticleReply row);

    int insertSelective(ArticleReply row);

    ArticleReply selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ArticleReply row);

    int updateByPrimaryKey(ArticleReply row);

    /**
     * 返回指定文章下的所有回复
     * @param articleId 文章id
     * @return
     */
    List<ArticleReply> selectByArticleId(@Param("articleId") Long articleId);
}